import {
  createRouter,
  createWebHistory,
  createWebHashHistory
} from "vue-router"

const routes = [
  // 规划建设左侧
  {
    path: "/left", 
    name: "left",
    component: import("@/views/Left/index.vue")
  },
  // 规划建设右侧
  {
    path: "/right",
    name: "right",
    component: import("@/views/Right/index.vue")
  },
  // 规划建设详情
  {
    path: "/PlanningDetails",
    name: "PlanningDetails",
    component: import("@/views/PlanningDetails/index.vue")
  },
  // 教育用地详情
  {
    path: "/Educationalland",
    name: "Educationalland", 
    component: import("@/views/Educationalland/index.vue")
  },
  // 师生情况弹窗 
  {
    path: "/TeacherSituation",
    name: "TeacherSituation",
    component: import("@/views/TeacherSituation/index.vue")
  },
  // 教师信息模块
  {
    path: "/TeacherInformation",
    name: "TeacherInformation",
    component: import("@/views/TeacherInformation/index.vue")
  },
  // 组织架构模块
  {
    path: "/organiStructure",
    name: "organiStructure",
    component: import("@/views/organiStructure/index.vue")
  },
  // 学生总体情况 
  {
    path: "/situationOfstudents",
    name: "situationOfstudents",
    component: import("@/views/situationOfstudents/index.vue")
  },
  // 学生信息
  {
    path: "/StudentInformation",
    name: "StudentInformation",
    component: import("@/views/StudentInformation/index.vue")
  }
]
const router = createRouter({
  // hash 模式: createWebHashHistory
  // history 模式 : createWebHistory
  // history: createWebHistory(),
  history: createWebHashHistory(),
  routes
})

export default router
